package com.rran.study.designpattern.factory.prototype;

/**
 * @author yy
 * @Type PrototypeTest.java
 * @Desc
 * @date 2020/7/22 15:41
 */
public class PrototypeTest {

    public static void main(String[] args) throws Exception {
        Realizetype obj1 = new Realizetype();
        obj1.setName("Rran");
        Realizetype obj2 = (Realizetype) obj1.clone();
        System.out.println(obj2.getName());
        System.out.println("obj1==obj2?"+(obj1==obj2));
    }
}
